Skip to content

Conversation

DanikVitek
Copy link

@DanikVitek DanikVitek commented Jan 29, 2025

Fixes #110

Modify the implementation of From<AsciiString> for Cow<'a, AsciiStr>.

  • Change impl From<AsciiString> for Cow<'static, AsciiStr> to impl<'a> From<AsciiString> for Cow<'a, AsciiStr> in src/ascii_string.rs
  • Broaden the conversion abilities by making it generic over any lifetime 'a

For more details, open the Copilot Workspace session.

Fixes tomprogrammer#110

Modify the implementation of `From<AsciiString>` for `Cow<'a, AsciiStr>`.

* Change `impl From<AsciiString> for Cow<'static, AsciiStr>` to `impl<'a> From<AsciiString> for Cow<'a, AsciiStr>` in `src/ascii_string.rs`
* Broaden the conversion abilities by making it generic over any lifetime `'a`

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/tomprogrammer/rust-ascii/issues/110?shareId=XXXX-XXXX-XXXX-XXXX).
@DanikVitek
Copy link
Author

@tomprogrammer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

impl From<AsciiString> for Cow<'static, AsciiStr> could be impl<'a> From<AsciiString> for Cow<'a, AsciiStr>
1 participant